home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: cannon.ecf!ber
- From: ber@ecf.toronto.edu (BER PHILIP)
- Subject: Help!: Accessing classes declared externally
- X-Nntp-Posting-Host: spark14.ecf
- Message-ID: <DMA4pp.E5v@ecf.toronto.edu>
- Sender: news@ecf.toronto.edu (News Administrator)
- Organization: University of Toronto, Engineering Computing Facility
- Date: Mon, 5 Feb 1996 01:41:49 GMT
-
-
- I am trying to compile a module into a library in Watcom C/C++ 10.5 and I
- have encountered the following problem: I have classes within the library
- which I would like to access in other modules. I am unable, however, to use
- the extern directive in the module to access the class:
-
- i.e.
-
- extern class foobar;
-
- Similar to something like 'extern void foobar();', I would expect the
- compiler to use this as a declaration of a class which lies outside of
- the module.
-
- The compiler will accept this, however, attempting to use foobar in any
- way, shape or form, causes the whole program to die horribly. Can anyone
- tell me what I am doing wrong? Thanks for any help.
-
- __ __
- /_/ /_/
- / hilip /_/ er
-
- Computer Engineering,
- University of Toronto.
- ber@ecf.toronto.edu
-
-
-